﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AMPLibrary.Media
{
    public class MediaGenreEqualityComparer : IEqualityComparer<MediaFile>
    {
        public bool Equals(MediaFile x, MediaFile y)
        {
            return x.Tag.Genre == y.Tag.Genre;
        }

        public int GetHashCode(MediaFile obj)
        {
            return obj.Tag.Genre.GetHashCode();
        }
    }
}
